$(document).ready(function () {
    let btn = document.querySelector('button');

    function buttonClick() {
        console.log('button click')
    }

    btn.onclick = buttonClick;
});
